var ws = new WebSocket('ws:localhost:10201/websocket');

let videoLeft = document.getElementById('videoLeft');

$('.img-left').on("click", function () {
    $('.img-left').hide();
    $('.videoLeftBox').show();
    videoLeft.play();
})
$('.imgStyle').on("click", function () {

    console.log($(this).attr("data-style"))
})
var swiper = new Swiper('.swiper-container0', {
    pagination: '.swiper-pagination',
    slidesPerView: 2,
    loop: true,
    spaceBetween: 0
});
$('.img-right').on("click", function () {
    upData()
})
function upData() {
    $('.img-left').hide();
    $('.videoLeftBox').show();
    videoLeft.src ="https://331.cdn-vod.huaweicloud.com/asset/c7a0f318d123583f75d67599cf82d39e/6cd72d80e4f7611006899528df7cce45.mp4"
    videoLeft.play();
    // console.log(imgSrc)
    ws.onopen = function (evt) {
        console.log("on open");
        // ws.send(imgSrc)
    }
    ws.onclose = function (evt) {
        console.log("on close");
    }
    ws.onmessage = function (evt) {
        console.log(evt.data);
    }
}
